<template>
  <div class="top-box">
    <!-- header -->
    <div class="topheader">
      <div class="topheaderTitle">
        <p>
          西安~全城
          <van-icon class-prefix="icon" name="sanjiao" />
        </p>
      </div>
    </div>
    <!-- top-content -->
    <div class="topcontent">
      <p class="rank-detail-title">去哪儿网酒店·专业试睡员测评</p>
      <img
        class="bg-koubei"
        src="https://s.qunarzz.com/h_touch_activity/img/rank/koubei_normal.png"
        alt=""
      />
      <div></div>
    </div>
    <!-- top-data -->
    <div class="topdata-box">
      <div class="topdata">
        <div class="topdataItem left-border">
          <p class="item-first">34762 家</p>
          <p class="item-sec">全国热门酒店</p>
        </div>
      </div>
      <div class="topdata">
        <div class="topdataItem left-border">
          <p class="item-first">34762 家</p>
          <p class="item-sec">全国热门酒店</p>
        </div>
      </div>
      <div class="topdata">
        <div class="topdataItem">
          <p class="item-first">34762 家</p>
          <p class="item-sec">全国热门酒店</p>
        </div>
      </div>
      <van-icon name="arrow" class="arrowcolor" @click="gokoubierank"/>
    </div>
    <!-- topdate -->
    <div class="topdate-box">
        <div class="topdate-left">
            <van-icon name="sign" />
            <span class="live">11月8日住</span>
            <span class="live">11月9日离</span>
            <van-icon class-prefix="icon" name="sanjiao"></van-icon>
        </div>
        <!-- <hr> -->
        <div class="onlyhouse">
            <van-icon name="filter-o" />
            <span>只看有房</span>
        </div>
    </div>
    <!-- rank-all -->
    <div class="rank-all">
        <div class="rank-span">
            <span class="arrowcolor">全部榜单</span><van-icon name="arrow" class="arrowcolor"/>
        </div>    
    </div>
        <ul class="rankimg-box" >
            <li><img class="rankimgs" src="https://s.qunarzz.com/f_cms/2021/1619161877495_85101380.png" alt=""><p>热门推荐</p></li>
            <li><img class="rankimgs" src="https://source.qunarzz.com/site/images/zhuanti/huodong/zhutibizhu2x.png" alt=""> <p>必住榜单酒店</p></li>
            <li><img class="rankimgs" src="https://source.qunarzz.com/site/images/zhuanti/huodong/bizhushangwu2x.png" alt=""><p>必住商务酒店</p></li>
            <li><img class="rankimgs" src="https://source.qunarzz.com/site/images/zhuanti/huodong/bizhushangwu2x.png" alt=""><p>必住商务酒店</p></li>
            <li><img class="rankimgs" src="https://source.qunarzz.com/site/images/zhuanti/huodong/bizhushangwu2x.png" alt=""><p>必住商务酒店</p></li>
            <li><img class="rankimgs" src="https://source.qunarzz.com/site/images/zhuanti/huodong/bizhushangwu2x.png" alt=""><p>必住商务酒店</p></li>
        </ul>

    <ul class="rankhotel-box">
        <li class="rankhoel-li">
            <!-- 榜单酒店 -->
        <div class="rankcontent">
            <div class="rankhotel-img">                
                <img src="https://userimg.qunarzz.com/imgs/202203/29/C.kImt0rcOFnC7wKFfc720.webp" alt="">
            </div>
            <!-- rank介绍模块 -->
            <div class="rankproduct">
                <div class="rankprice">
                    <p>西安钟楼优优精品公寓酒店
                        <span class="pricemargin">¥114起</span>
                    </p>
                        <span class="pingfen">4.9分</span>
                </div> 
                <p class="producttext">
                    <span>
                        <img style="width: 46px;height: 12px;" src="https://s.qunarzz.com/h_touch_activity/img/rank/rec_img2.png" alt="">
                    </span>
                    :酒店服务优质，环境舒适，性价比高，入住体验良好
                </p>
            </div>
        </div>
            <!-- top1模块 -->
            <div class="topindes">
                <div class="topindex">
                    <p>Top</p>
                    <p>1</p>
                </div>
            </div>
            <!-- 点赞 苦脸 -->
            <div class="good-tab">
                <div class="dianzan">
                    <van-icon class-prefix="icon" name=dianzan></van-icon>
                    <span>30</span>
                </div>
                <div class="kulian dianzan">
                    <van-icon class-prefix="icon" name=kulian></van-icon>
                    <span>14</span>
                </div>
            </div>
            
        </li>
    </ul>
    <!-- footer -->
    <div class="footer">
        <span>下一站</span>
        <span>去哪儿</span>
    </div>
  </div>
</template>
<script>
export default {
  name: "Toplistpage",
  data() {
    return {};
  },
  components: {},
  methods: {
    gokoubierank(){
        this.$router.push('/koubierank')
    },
  },
};
</script>
<style scoped>
@import url("../../../style/base.css");
.top-box {
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0) 50%, rgba(20, 44, 85, 0.5) 80%, rgb(20, 44, 85) 100%), url('https://s.qunarzz.com/h_touch_activity/img/rank/bg_normal2.jpg') center center / cover no-repeat;

  .topheader {
    width: 100%;
    height: 20px;
    display: inline-block;
    margin: 0 auto;
    font-size: 12px;
    line-height: 1;
    vertical-align: middle;
    border-radius: 5px;
    .topheaderTitle {
      width: 110px;
      height: 25px;
      border-radius: 15px;
      line-height: 25px;
      margin: 10px auto;
      background: #5270b2;
      font-size: 14px;
      font-weight: bold;
      color: #fff6e5;
      text-align: center;
    }
  }
  .topcontent {
    text-align: center;
    .rank-detail-title {
      font-size: 14px;
      color: #e7d0a8;
      margin-top: 20px;
      font-weight: 500;
    }
    .bg-koubei {
      width: 200px;
      height: 50px;
      display: block;
      margin: 0 auto;
      margin-top: 15px;
      margin-bottom: 15px;
    }
  }
  .topdata-box {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
.arrowcolor{
    color:#fff4d7;
}
    .topdata {
      width: 80%;
      height: 40px;
      margin: 0 auto;
      .topdataItem {
        font-size: 13px;
        text-align: center;
        color: #fff4d7;
        box-sizing: border-box;
        .itemfelx {
          display: flex;
          justify-content: space-between;
          align-items: center;
        }
      }
      .left-border {
        border-right: 1px solid #e6e6e6;
      }
    }
  }
.topdate-box{
    width: 88%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0px 10px 0px 10px;
    margin: 24px 12px 12px 12px;
    background: rgba(20, 32, 66, .8);
    border-radius: 15px;
    color: #e7d0a8;
        .topdate-left{
            width: 200px;
            /* height: 30px; */
            .live{
                font-size: 14px; 
                margin:0 10px 5px 10px;
            }
        }
}
  .rank-all{
    width: 100%;
    /* height: 50px; */
    color: #e7d0a8;
    background-color: #0b1429;
    display: flex;
    justify-content: end;
    align-items: center;
    font-size: 13px;
    padding: 10px 0;
  }
  .rankimg-box{
    width:100%;
    height: 120px;
    display: flex;
    text-align: center;
    color:#e7d0a8;
    overflow-x: scroll;
    
        }
  .rankimg-box li{
    width: 200px;
    height: 120px;
    margin-right: 10px;
    
  }
  .rankimg-box img{
    width: 200px;
    height: 100px;
    margin-left: 5px;
    border-radius: 10px;
  }
  .rankhotel-box{
    position: relative;
    .rankhoel-li{
        width: 350px;
        height: 220px;
        margin: 10px auto;
        /* background-color: aqua; */
        .rankcontent{
            width: 350px;
            height: 100px;
            border-radius: 10px;
           .rankhotel-img{
            width: 350px;
            height: 130px;
        }
        .rankhotel-img img{
            width: 100%;
            height: 100%;
            border-radius: 5px;
        }
    }
    .rankproduct{
        width: 350px;
        height: 80px;
        
        background-color: #fff;
        .rankprice{
            width: 100%;
            height: 20px;
            font-size: 17px;
            margin: 0px 5px;
            .pingfen{
                font-size: 14px;
                color:#e7d0a8;
            }
            /* display: flex; */
        .pricemargin{
            margin-right: 20px;
            float: right;
            color: #e25150;
        }
        }
        .rankprice p{
            padding-top: 10px;
        }
        .producttext{
            width: 100%;
            font-size: 12px;
            box-sizing: border-box;
          
            margin-left: 5px;
            padding-top: 35px;
            /* text-align: center; */
        }
    }  
}
   .topindes{
    position: absolute;
    top: 0;
    left: 24px;
    width: 30px;
    height: 40px;
    background: url('https://s.qunarzz.com/h_touch_activity/img/rank/newrank_top_normal.png') 0 0 / 100% 100%;
    .topindex{
        text-align: center;
        font-size: 13px;
        color: #fff;
        }
    }     
    .good-tab{
        position: absolute;
        display: flex;
        align-items: center;
        padding: 10px;
        margin:0px 5px;
        color: #fff;
        z-index: 1;
        .dianzan{
            margin-right: 10px;
            font-size: 15px;
        }
    }
    
}
.footer{
        width: 100%;
        height: 20px;
        margin: 0 auto;
        text-align: center;
        font-size: 14px;
    }
    .footer span{
         margin-right:5px;
         color:#fff;
    }

}
</style>
